﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Poke_Tactics.Main_Game.City
{
    class Pallet
    {

        public Texture2D background;
        public List<Texture2D> listaImagens;
        public string name;
        public List<TownButton> listaBotoes;

        float alfa = 1;

        public struct TownButton
        {
            public Button button;
            public string name;
        }

        public Pallet(GameWindow Window, ContentManager Content)
        {
            this.background = Content.Load<Texture2D>("City/Pallet");
            listaBotoes = new List<TownButton>();

            TownButton pokeCenter = new TownButton();
            pokeCenter.button = new Button(Window, Content.Load<Texture2D>("Poke_Center_Button"));
            pokeCenter.button.position = new Vector2(300,300);
            pokeCenter.name = "Poke Center";
            listaBotoes.Add(pokeCenter);

            TownButton returnToMap = new TownButton();
            returnToMap.button = new Button(Window, Content.Load<Texture2D>("Return_Button"));
            pokeCenter.button.position = new Vector2(300, 400);
            returnToMap.name = "Return to Map";
            listaBotoes.Add(returnToMap);
        }

        public void Update(GameTime gameTime, MouseState mouse, MouseState old_mouse)
        {

        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            foreach (TownButton button in listaBotoes)
            {
                button.button.Draw(gameTime, spriteBatch);
            }

            spriteBatch.Draw(background, new Rectangle(0, 0, background.Width, background.Height), new Color(1.0f * alfa, 1.0f * alfa, 1.0f * alfa, 1.0f * alfa));
        }

    }
}
